<%--
  Created by IntelliJ IDEA.
  User: lxm
  Date: 2018/1/7
  Time: 下午4:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--通用脚本部分开始--%>
<script src="/static/layui/layui.js"></script>
<script src="/static/layui/jquery.js"></script>
<script src="/static/layui/js/common/wow.js"></script>
<script src="/static/layui/js/common/md5.js"></script>
<%--<script src="/static/layui/css/modules/layer/layer.js"></script>--%>
<%--格式化json的插件--%>
<script src="/static/layui/js/common/fomatJson.js"></script>
<%--公共变量--%>
<script src="/static/layui/js/common/publicVars.js"></script>
<script>
    layui.use(['element', 'layer', 'form', 'util'], function () {
        var element = layui.element;
        var util = layui.util;
        var layer = layui.layer;
        //执行返回顶部
        util.fixbar({
            showHeight: 100
        });
        var form = layui.form;
        form.verify({
            widthLimit: function (value, item) { //value：表单的值、item：表单的DOM对象
                if (value > 3000)
                    return "超过最大限制3000,请求图片过大";
                if (value <= 0)
                    return "小于最小限制0,请求图片失败";
            }

            //我们既支持上述函数式的方式，也支持下述数组的形式
            //数组的两个值分别代表：[正则匹配、匹配不符时的提示文字]
            , pass: [
                /^[\S]{6,12}$/
                , '密码必须6到12位，且不能出现空格'
            ]
        });

        form.render();

    });

</script>
<script>
    // 启动wow动画插件
    new WOW().init();
</script>
<script>
    /**
     * 滑动跳转
     * @param obj
     * @constructor
     */
    var AnchorClick = function (obj) {
        var href = $(obj).attr("href");
        var pos = $(obj).offset().top;
        $("html,body").animate({scrollTop: pos}, 1000);
    };
</script>
<script src="/static/layui/css/modules/highlight/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script src="/static/layui/js/common/utils.js"></script>
<%--通用脚本部分结束--%>